package com.PMSys.Dao;

import java.util.List;

import com.PMSys.Demain.Department;
import com.PMSys.Demain.Staff;

public interface DepartmentDao {

	int add(Department dp);

	int update(Department dp);

	int delete(int id);

	Department selectById(int id);
	
	Department selectBySuperiorId(int superiorId);
	
	List<Department> selectPart(Department dp);
	
	List<Department> selectAll();
	
	List<Staff> selectDepartmentEmployees(int id);

	boolean existSubordinate(int id);
	
	boolean existEmployee(int id);
}
